package wwl.lsf.hellospringboot.xss;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;

/**
 * @Title
 * @Author wangwenliang
 * @Date 2020/7/14
 * @Description
 */
@Configuration
public class XssJSONConfig {
  @Bean
  public MappingJackson2HttpMessageConverter getMappingJackson2HttpMessageConverter() {
    MappingJackson2HttpMessageConverter mappingJackson2HttpMessageConverter = new MappingJackson2HttpMessageConverter();
    mappingJackson2HttpMessageConverter.setObjectMapper(new CustomObjectMapper());
    return mappingJackson2HttpMessageConverter;
  }
}
